home *** CD-ROM | disk | FTP | other *** search
- From: knarf@nasim.sta.sub.org (Frank Bartels)
- Subject: Re: Deleting owned files...
- Date: Wed, 11 May 1994 18:29:24 +0200 (MET DST)
- In-Reply-To: <9405111029.AA15363@issan.informatik.uni-dortmund.de> from "Andreas Schwab" at May 11, 94 12:29:56 pm
- Mime-Version: 1.0
-
- Andreas Schwab wrote:
- >
- > Stephen Usher <Stephen.Usher@earth.ox.ac.uk> writes:
- >
- > |> Under BSD the symatics are:-
- >
- > |> drwxrwxrwx Anyone can delete, create or rename files.
- > |> drwxr-xr-x Only owner of directory can do the above.
- > |> drwxrwtrwx Anyone can create or delete their own files, no-one
- > |> else (other than root) can do so.
-
- This is not true. The owner of the directory is also permitted to delete
- entries in a directory where the sticky bit is set.
-
- > |> The important thing is the directory's protection, not the file's, which
- > |> determines who can do what to files in the directory, other than for
- > |> chown'ing. To chown a file you need to be the owner or root.
- >
- > Under BSD you cannot chown unless you are root, even the owner (of the
- > file) cannot. Otherwise you could fill up other peoples quotas :-)
-
- Or you just make an sh suid and give it to root (asuming there is no
- special mechanism deleting the suid-bit when chowning).
-
- Bye,
- Knarf
- --
- Frank Bartels | Fax/UUCP: + 49 89 5469593 | MiNT is
- knarf@nasim.sta.sub.org | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!
-